home *** CD-ROM | disk | FTP | other *** search
- global gHTile, gTToolsInstalled, gTTKName
- if (gTToolsInstalled = "true") then
- put tStr("EBTMsg",42) into wn
- put getStackPath() & gTTKName into sn
- else
- put tStr("LibMsg",32) into wn
- put getstackpath() & "the library" into sn
- end if
- if there is not a window wn then
- put 0 into gHTile
- cbusy
- get wn
- maxmem
- if WinSpace(it,"R") then
- textxwindow 32051, wn, true,5
- if there is a window wn then
- isEBW wn
- set saveFileName of window wn to sn
- set saveRezName of window wn to wn
- put offsetR("5,40,318,240") into r
- set rect of window wn to r
- set neverwrap of window wn to true
- if (the optionkey = "down") then
- set saveChanges of window wn to true
- set saveMethod of window wn to "Resource"
- set returnclickline of window wn to false
- set editstate of window wn to 2
- else
- set saveChanges of window wn to false
- end if
- set saveAlertID of window wn to GetDlgID(328)
- send readRez to window wn
- set lineheight of window wn to 15
- set the textselection of window wn to "0,0"
- set ClickHandlerName of window wn to "HWClick"
- set visible of window wn to true
- send endEdit to window wn
- else
- lomem wn
- end if
- else
- lomem wn
- end if
- end if